﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Program
    {
        static void Main(string[] args)
        {
            //定义一个员工类，存放用户的工号、姓名和部门信息；
            //定义两个构造函数，一个是无参；
            //一个有参构造函数，对类的属性进行初始化

            Staff S1 = new Staff();
            S1.id = 10010;
            S1.name = "李四";
            S1.department = "人事部";
            S1.S();

            Staff S2 = new Staff(10086,"张三","开发部");
            S2.S();
        }
    }
}
